import request from '@/utils/request'

// 查询部门列表
export function listDept(query) {
  return request({
    url: '/system/comDepartment/list',
    method: 'get',
    params: query
  })
}

// 部门绑定角色
export function bindDepartmentRole(data) {
  return request({
    url: '/system/comDepartment/bindDepartmentRole',
    method: 'post',
    data: data
  })
}

// 统一门户查询部门和角色的关系
export function selectDepartmentRole(deptId) {
  return request({
    url: '/system/comDepartment/selectDepartmentRole/' + deptId,
    method: 'get'
  })
}